import unittest


class DemoTestCase(unittest.TestCase):

    @unittest.skip('无条件跳过')
    def test01(self):
        print('test01')

    @unittest.skipIf(1==1,'1等于1,跳过该用例')
    def test02(self):
        print('test02')
    @unittest.skipUnless(1==2,'1不等于2,跳过该用例')
    def test03(self):
        print('test03')
    @unittest.expectedFailure#该测试用例可能无效,直接跳过
    def test04(self):
        print('test04')


if __name__ == '__main__':
    unittest.main(verbosity=2)